<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML>
<html>
	<head>
		<title>更新资源</title>
	</head>

	<body>
	 <div align="center">
		<s:form action="updateResource" method="POST" enctype="multipart/form-data" >   
			<s:hidden name="id"></s:hidden>
			<table border="1">
				<tr>
					<s:textfield label="资源名称" name="r.name"></s:textfield>
				</tr>
				<tr>
					<s:select label="类型" name="r.type" list="resourceTypeMap"></s:select>
				</tr>
				<tr>
					<s:textarea label="描述" name="r.description" cols="40" rows="10"></s:textarea>
				</tr>
				<tr>
				 <s:file name="doc" label="图片" />   
				</tr>
				<tr>
					<s:textfield label="资源url" name="r.url"></s:textfield>
				</tr>
				<tr>
					<td colspan="2">
						<s:submit value="保存"></s:submit>
					</td>
				</tr>
			</table>
		</s:form>
		</div>
	</body>
</html>
